
package com.gregbugaj.nativequeryidl.converters;

/**
 * Converter Interface 
 * @author devil
 *
 */
public interface Converter<T> {
	/**
	 * Convert Object to given type T 
	 * @param obj
	 * @return
	 */
	T convert(final Object obj);
	/**
	 * Test if a class type can be converted using this converter
	 * @param type of class to check
	 * @return true if we can convert otherwise false;
	 */
	boolean canConvert(final Class<?> type);
}
